'use strict';
/**
 * @params {表单数据}
 * @business {登录}
 * @author {JC}
 * **/
const Controller = require('egg').Controller;
class Login extends Controller {
    async login (){
        const {ctx} = this;
        const params = ctx.request.body;
        let result = await ctx.service.login.getLogin(params);
        ctx.body = {
            msg:200,
            data:"登录成功",
            result:result,
            code:2002
        }
    }
}

module.exports = Login